package com.cmc6.user.model.dto;

import com.cmc6.common.constant.BaseRegexConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class EmailNotBlankDTO {

    @Size(max = 100)
    @NotBlank
    @Pattern(regexp = BaseRegexConstant.EMAIL)
    @ApiModelProperty(value = "邮箱", required = true)
    private String email;
}
